﻿using System.Data.SqlTypes;
using Microsoft.SqlServer.Types;

namespace EnviroDb.Edm
{
    public partial class Feature : global::System.Data.Objects.DataClasses.EntityObject
    {
        public SqlGeography GeoPosition
        {
            get
            {
                return SqlGeography.STGeomFromText((SqlChars)new SqlString(this.GeoPositionText), 4326);
                
            }
            set
            {
                this.GeoPositionText = value.ToString();
            }
        }
    }
}
